import request from '@/utils/request'

// 查询转场参数配置列表
export function listTransferForward(query) {
  return request({
    url: '/system/transferForward/list',
    method: 'get',
    params: query
  })
}

// 查询转场参数配置详细
export function getTransferForward(id) {
  return request({
    url: '/system/transferForward/' + id,
    method: 'get'
  })
}

// 新增转场参数配置
export function addTransferForward(data) {
  return request({
    url: '/system/transferForward',
    method: 'post',
    data: data
  })
}

// 修改转场参数配置
export function updateTransferForward(data) {
  return request({
    url: '/system/transferForward',
    method: 'put',
    data: data
  })
}

// 删除转场参数配置
export function delTransferForward(id) {
  return request({
    url: '/system/transferForward/' + id,
    method: 'delete'
  })
}

export function enableTransferForward(id) {
  return request({
    url: '/system/transferForward/enable',
    method: 'post',
    data: {id: id, status: '1'}
  })
}

export function disEnableTransferForward(id) {
  return request({
    url: '/system/transferForward/disEnable',
    method: 'post',
    data: {id: id, status: '0'}
  })
}

// 导出转场参数配置
export function exportTransferForward(query) {
  return request({
    url: '/system/transferForward/export',
    method: 'get',
    params: query
  })
}
